package com.tulingxueyuan.mall.modules.pms.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Bin
 * @since 2022-08-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("pms_product_farmer")
@ApiModel(value="PmsProductFarmer对象", description="")
public class PmsProductFarmer implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "农户编号")
    @TableId(value = "farmer_id", type = IdType.AUTO)
    private Long farmerId;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "身份证号")
    private String cardId;

    @ApiModelProperty(value = "手机号")
    private String phoneNumber;

    @ApiModelProperty(value = "家庭住址")
    private String address;

    @ApiModelProperty(value = "茶园编号")
    private String gardenId;

    @ApiModelProperty(value = "家庭收入：0->富裕；1->小康；2->中等；3->一般；4->温饱；5->贫困；6->特困")
    private Integer familyIncome;

    @ApiModelProperty(value = "家庭成员数量")
    private Integer familyMembers;

    // TODO:0->健康；1->良好 映射
    @ApiModelProperty(value = "家庭成员健康状况")
    private String healthCondition;

    @ApiModelProperty(value = "删除状态：0->未删除；1->已删除")
    @TableLogic(value = "0" , delval = "1")
    private String deleteStatus;


}
